<%word=request("word") key=request("key") ypxxone_id=request("ypxxone_id") ypxxtwo_id=request("ypxxtwo_id") addone_id=request("addone_id") addtwo_id=request("addtwo_id") if ypxxone_id<>"" then xxsort=" and SMT_ypxxone_id="&ypxxone_id&"" if ypxxtwo_id<>"" then xxsort=xxsort&" and SMT_ypxxtwo_id="&ypxxtwo_id&"" end if end if if addone_id<>"" then addsort=" and SMT_addone_id="&addone_id&"" if addtwo_id<>"" then addsort=addsort&" and SMT_addtwo_id="&addtwo_id&"" end if end if '================================== if word="" or key="" then response.redirect"search.asp" end if%> <%=citytitle%> <%SMT_TOP%> <%search%>
<%sql="select * from SMT_exhibit where SMT_key<>0 and SMT_key2=1 and(SMT_z_name like'%"&word&"%' or SMT_z_lr like'%"&word&"%' or SMT_z_others like'%"&word&"%') "&xxsort&addsort&" order by SMT_tjdate desc" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then response.write "" else '分页的实现 listnum=15 Rs.pagesize=listnum page=Request("page") if (page-Rs.pagecount) > 0 then page=Rs.pagecount elseif page = "" or page < 1 then page = 1 end if Rs.absolutepage=page '编号的实现 j=rs.recordcount j=j-(page-1)*listnum i=0%> <%do while not rs.eof and i"&word&"") aaa=trim(rs("SMT_z_others")) if instr(aaa,word) then a=len(aaa) b=instr(aaa,word) if b<50 then c=left(aaa,b) else c="..."&mid(aaa,b-50,50) if a-(b+len(word))<50 then d=right(aaa,a-(b+len(word))) else d=mid(aaa,b,50)&"..." SMT_z_others=c&d else SMT_z_others=Trim(left(aaa,100))&"..." end if SMT_z_others=replace(SMT_z_others,word,""&word&"") '==================== %> <%rs.movenext i=i+1 j=j-1 loop%> <%filename="search_"&key&".asp?word="&word&"&key="&key%> <%end if%>
没有找到能和“"&word&"”匹配的内容,请尝试其它搜索。
>> target="_blank" class="f14"><%=SMT_z_name%> (<%=rs("SMT_z_date")%>)

   <%=SMT_z_others%>

<%=page%>/<%=Rs.pagecount%>  <% if page=1 then %><%else%> >|<< &page=<%=page-1%>><< &page=<%=page-1%>>[<%=page-1%>] <%end if%><% if Rs.pagecount=1 then %><%else%>[<%=page%>]<%end if%> <% if Rs.pagecount-page <> 0 then %> &page=<%=page+1%>>[<%=page+1%>] &page=<%=page+1%>>>> &page=<%=Rs.pagecount%>>>>| <%end if%>  
<%set rs=server.createobject("adodb.recordset") sql="select top 10 * from SMT_cp where SMT_key=1 and SMT_key1=1 and SMT_key2=1 and SMT_key3=1 order by SMT_id desc" rs.open sql,conn,1,1 do while not rs.eof cpname=rs("SMT_cpname")%> <%rs.movenext loop rs.close%>
  产品信息推荐
target="_blank">" border="0" width=80 height=80 style="border:1px #000000 solid">
target="_blank"><%=LeftT(cpname,12)%>
<%=citybottom%>